'use strict';
const uniPush = uniCloud.getPushManager({
	appId: "__UNI__0B6E445"
}) //注意这里需要传入你的应用appId
exports.main = async (event, context) => {
	const data = JSON.parse(event.body)
	const res = await uniPush.sendMessage({
		"push_clientid": data.push_clientid, //填写上一步在uni-app客户端获取到的客户端推送标识push_clientid
		"force_notification": true, //填写true，客户端就会对在线消息自动创建“通知栏消息”。
		"title": data.title,
		"content": data.content,
		"payload":data.payload,
		"path":data.path
	})
	return {
		...res,data
	}
};